package interfaces;

import java.util.Map;

import basic.QuerySet;
import basic.ResultSet;
import entities.TResource;
import views.VOperatorResource;

public interface IResourceService {

	public Boolean exist(String primaryKey) throws Exception;
	
	public Boolean contain(Map<String,Object> paramMap) throws Exception;

	public TResource fetch(String primaryKey) throws Exception;
	
	public TResource single(Map<String,Object> paramMap) throws Exception;

	public TResource persist(TResource entityBean) throws Exception;

	public Integer remove(String primaryKey ) throws Exception;
	
	public Integer expunge(Map<String,Object> paramMap) throws Exception;

	public Integer record(Map<String,Object> paramMap) throws Exception;

	public  ResultSet<TResource> search(QuerySet<Object> querySet) throws Exception;
	
	public  ResultSet<VOperatorResource> relate(QuerySet<Object> querySet) throws Exception;
}
